From: Konrad Rzeszutek Wilk Date: Thu, 8 Sep 2016 09:11:38 +0000 (-0400) Subject: livepatch/tests: Move the .name value to .rodata X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~374 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=b67715f50ec6235903a6a030b530a0c65d80b351;p=xen.git livepatch/tests: Move the .name value to .rodata Right now the contents of 'name' are all located in the .data section. We want them in the .rodata section so change the type to have const on them. Reviewed-by: Ross Lagerwall Acked-by: Jan Beulich Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/xen/arch/x86/test/xen_bye_world.c b/xen/arch/x86/test/xen_bye_world.c index b75e0b1237..2700f0eedd 100644 --- a/xen/arch/x86/test/xen_bye_world.c +++ b/xen/arch/x86/test/xen_bye_world.c @@ -11,7 +11,7 @@ #include -static char bye_world_patch_this_fnc[] = "xen_extra_version"; +static const char bye_world_patch_this_fnc[] = "xen_extra_version"; extern const char *xen_bye_world(void); struct livepatch_func __section(".livepatch.funcs") livepatch_xen_bye_world = { diff --git a/xen/arch/x86/test/xen_hello_world.c b/xen/arch/x86/test/xen_hello_world.c index 422bdf1138..d80963ef74 100644 --- a/xen/arch/x86/test/xen_hello_world.c +++ b/xen/arch/x86/test/xen_hello_world.c @@ -10,7 +10,7 @@ #include -static char hello_world_patch_this_fnc[] = "xen_extra_version"; +static const char hello_world_patch_this_fnc[] = "xen_extra_version"; extern const char *xen_hello_world(void); struct livepatch_func __section(".livepatch.funcs") livepatch_xen_hello_world = { diff --git a/xen/arch/x86/test/xen_replace_world.c b/xen/arch/x86/test/xen_replace_world.c index a2a221ae7e..78a8f528b3 100644 --- a/xen/arch/x86/test/xen_replace_world.c +++ b/xen/arch/x86/test/xen_replace_world.c @@ -10,7 +10,7 @@ #include -static char xen_replace_world_name[] = "xen_extra_version"; +static const char xen_replace_world_name[] = "xen_extra_version"; extern const char *xen_replace_world(void); struct livepatch_func __section(".livepatch.funcs") livepatch_xen_replace_world = {